package com.laiketui.plugin.common.domain.base.config.plugin;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 分销配置
 *
 * @author Trick
 */
@Table(name = "lkt_distribution_config")
public class DistributionConfigModel {

    /**
     * 按照商品利润计算
     */
    public static final int BY_SPLR = 1;
    /**
     * 按照商品售价计算
     */
    public static final int BY_SPSJ = 2;
    /**
     * 按照设置的PV值计算
     */
    public static final int BY_PV = 3;

    /**
     * 结算方式
     **/
    public interface SettementType {
        /**
         * 付款后
         **/
        int SETTEMENTTYPE_PAYMENT = 1;
        /**
         * 收货后
         **/
        int SETTEMENTTYPE_RECEIVING = 2;
    }

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 商城id
     */
    private Integer store_id;

    private String sets;

    /**
     * 插件状态 0关闭 1开启
     */
    private Integer status;

    /**
     * 是否开启加盟广告 0关闭 1开启
     */
    private Integer advertising;

    /**
     * 广告地址
     */
    private String ad_image;

    /**
     * 关系确定方式 0注册确定 1消费确定
     */
    private Integer relationship;

    public Integer getRelationship() {
        return relationship;
    }

    public void setRelationship(Integer relationship) {
        this.relationship = relationship;
    }

    public String getAd_image() {
        return ad_image;
    }

    public void setAd_image(String ad_image) {
        this.ad_image = ad_image;
    }

    public Integer getAdvertising() {
        return advertising;
    }

    public void setAdvertising(Integer advertising) {
        this.advertising = advertising;
    }

    /**
     * 获取id
     *
     * @return id - id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取商城id
     *
     * @return store_id - 商城id
     */
    public Integer getStore_id() {
        return store_id;
    }

    /**
     * 设置商城id
     *
     * @param store_id 商城id
     */
    public void setStore_id(Integer store_id) {
        this.store_id = store_id;
    }

    /**
     * @return sets
     */
    public String getSets() {
        return sets;
    }

    /**
     * @param sets
     */
    public void setSets(String sets) {
        this.sets = sets == null ? null : sets.trim();
    }

    /**
     * 获取插件状态 0关闭 1开启
     *
     * @return status - 插件状态 0关闭 1开启
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置插件状态 0关闭 1开启
     *
     * @param status 插件状态 0关闭 1开启
     */
    public void setStatus(Integer status) {
        this.status = status;
    }
}